package com.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.bean.StockApplyMaterial;
import com.mapper.StockApplyMaterialMapper;
import com.service.StockApplyMaterialService;

/**
 * @author  author : 张鹏
 * @date createTime：2018年3月2日 下午6:32:40 
 * @Description: 该类的功能描述
 */
@Service
public class StockApplyMaterialServiceImpl implements StockApplyMaterialService{
	@Resource
	private StockApplyMaterialMapper stockApplyMaterialMapper;

	@Override
	public int createStockApplyMaterial(StockApplyMaterial material) {
		// TODO Auto-generated method stub
		return stockApplyMaterialMapper.insert(material);
	}

	@Override
	public List<StockApplyMaterial> getMaterialByStockApplyId(int stockApplyId) {
		// TODO Auto-generated method stub
		return stockApplyMaterialMapper.selectByStockApplyId(stockApplyId);
	}

}
